﻿using System;
using System.ComponentModel.DataAnnotations;
using HengTong.Model.Interfaces;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Attributes;

namespace HengTong.Model.Db.Other;

/// <summary>
/// 活动图片组定义
/// </summary>
[MiddleTable]
public class SysActivitImages : BasePoco, IFileBase
{
    //活动参与
    [Display(Name = "活动参与ID", Description = "关联的活动参与ID", GroupName = "活动参与信息")]
    public Guid? ActivityParticipationId { get; set; }

    [Display(Name = "活动参与ID", Description = "关联的活动参与ID", GroupName = "活动参与信息")]
    public SysActivityParticipation ActivityParticipation { get; set; }

    //ISubFile定义的字段
    [Display(Name = "文件ID", Description = "文件唯一标识", GroupName = "文件信息")]
    public Guid? FileId { get; set; }

    [Display(Name = "文件", Description = "文件对象", GroupName = "文件信息")]
    public FileAttachment File { get; set; }

    [Display(Name = "排序", Description = "图片顺序", GroupName = "文件信息")]
    public int Order { get; set; }
}